home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Mecomp Multimedia 1
/
Mecomp-CD.iso
/
amiga
/
tools
/
system
/
installerfx
/
examples
/
installerfx example
< prev
next >
Wrap
Text File
|
1997-06-23
|
1KB
|
87 lines
; InstallerFX script
(onerror (CLEANUP))
; Cleanup any temporary mess we created
(procedure CLEANUP
; Nothing to cleanup
(delete "t:Logopic")
(delete "t:Logopic.prefs")
) ; CLEANUP
(set @user-level 0)
;(set Opt 3)
;(complete 0)
(copyfiles
(source "InstallerFX/InstallerFXlogo.gif")
(dest "t:")
(newname "Logopic")
)
(copyfiles
(source "InstallerFX/InstallerFXLogo.prefs")
(dest "t:")
(newname "Logopic.prefs")
)
(run "run InstallerFX/InstallerFX t:logopic")
(set @user-level 2)
;Get directory to install test to:
(set destdir
(askdir
(prompt "In which drawer should testfiles be installed?")
(help @askdir-help)
(default ("t:"))
)
)
(complete 10)
(set installfiles
(askoptions
(prompt "Which of the following optional programs/helpfile should be installed ?")
(help @askoptions-help)
(choices "InstallerFX")
(default Opt)
)
)
(complete 50)
;Copy program files to destination.
(if (BITAND installfiles 1)
(copyfiles
(source "InstallerFX")
(dest destdir)
(all)
)
)
(set installfiles
(askoptions
(prompt "Which of the following optional programs/helpfile should be installed ?")
(help @askoptions-help)
(choices "InstallerFX")
(default Opt)
)
)
(if (BITAND installfiles 1)
(copyfiles
(source "InstallerFX")
(dest destdir)
(all)
)
)
(complete 100)
(CLEANUP)
(exit)